# Maintainer: Kyle Keen <keenerd@gmail.com>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: Michael Düll <mail@akurei.me>
# Contributor: pumbur

pkgname=opus-tools
pkgver=0.2
pkgrel=5
pkgdesc='Collection of tools for Opus audio codec'
arch=('loong64' 'x86_64')
url='https://wiki.xiph.org/Opus-tools'
license=('BSD')
depends=('flac' 'libogg' 'opus' 'opusfile>=0.12' 'libopusenc')
source=("https://downloads.xiph.org/releases/opus/$pkgname-$pkgver.tar.gz")
md5sums=('ff2d0536e960cabbfb8ca7c8c1759b6c')

build(){
  cd "$pkgname-$pkgver"
  ./configure --prefix=/usr
  make
}

package() {
  cd "$pkgname-$pkgver"
  make DESTDIR="$pkgdir" install

  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
